package com.itbooking.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.itbooking.core.Params;
import com.itbooking.pojo.Customer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
 * 
 * todo:客户管理数据层
 * CustomerMapper<br/>
 * 创建人:黄佳钦大佬<br/>
 * 时间：2020年04月26日 23:48:11 <br/>
 * @version 1.0.0<br/>
 *
 */
public interface CustomerMapper extends BaseMapper<Customer>{

	//添加
	public int saveCustomer(Customer customer);
	//修改
	public int updateCustomer(Customer customer);
	//删除
	public int deleteCustomerById(@Param("id")Integer id);
	//查询单个
	public Customer getCustomerById(@Param("id")Integer id);
	//查询所有
	public List<Customer> queryCustomerAll(Params params);
	// 查询所有
	public List<Map<String,Object>> queryCustomerAllForMap(Params params);
	//查询单个
	public Map<String,Object> getCustomerByIdForMap(@Param("id")Integer id);
	//删除多个
	public int deleteCustomerByIds(@Param("opids")List<Integer> idIntegers);

}